package com.pink.entity.enums;

public enum ResponseCodeEnum {
    CODE_EMAIL_CODE(401, "验证码过期或不存在"),
    CODE_200(200, "请求成功"),
    CODE_500(500, "服务器内部错误"),
    CODE_404(404, "请求资源不存在"),
    CODE_403(403, "没有权限访问"),
    CODE_400(400, "请求参数错误"),
    CODE_401(401, "未授权"),
    CODE_600(600, "参数校验失败"),
    CODE_601(601, "信息已经存在"),
    CODE_901(901, "登录超时");


    private Integer code;
    private String message;

    ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
